int LDR = A0; int LED = D1; void setup() { pinMode(LDR,INPUT); pinMode(LED,OUTPUT); } void loop() { int ldrval = analogRead(LDR); int mappedVal = map(ldrval,0,1023,0,255); analogWrite(LED,mappedVal); }
E-mail Error message here!
Password Show Error message here!
Remember me
Forgot your password?
Username Error message here!
E-mail Send OTP Error message here!
OTP Error message here!
I agree to the Terms
Lost your password? Please enter your email address. You will receive a password you Need.
E-mail Send Error message here!
Back to log-in